<?php
/**
 * Created by PhpStorm.
 * User: win7
 * Date: 2018/5/2
 * Time: 13:30
 */

namespace app\api\model;

class BannerItem extends BaseModel
{
    // 隐藏前端不需要的字段
    protected $hidden = ['id', 'img_id', 'delete_time', 'update_time', 'banner_id'];
    public function img() {
        return $this->belongsTo('Image', 'img_id', 'id');
    }
}